﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ParameterTypeList.aspx.cs"
    Inherits="BySoft.Web.Site.SysManage.ParameterTypeList" MasterPageFile="~/MastePage/SubEmptyMaster.Master" %>

<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ContentPlaceHolderID="EmptyMasteCPH" runat="server" ID="cphContent">
    <h1 class="tit">
        系统管理 >> 参数类别</h1>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <%--查询条件--%>
            <div class="searchTable">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <th width="20%">
                            类别编号：
                        </th>
                        <td width="30%">
                            <asp:TextBox ID="txtTypeID" runat="server"  CssClass="text ui-widget-content ui-corner-all"> </asp:TextBox>
                        </td>
                        <th width="20%">
                            类别名称：
                        </th>
                        <td width="30%">
                            <asp:TextBox ID="txtTypeName" runat="server"  CssClass="text ui-widget-content ui-corner-all"> </asp:TextBox>
                        </td>
                    </tr>
                </table>
                <div class="btnStylef">
                    <label class="btnStylec png_bg">
                        <input value="新增" type="button" id="Button1" onclick="window.location='/SysManage/ParameterTypeAddOrEdit.aspx'"
                            class="png_bg" style="width: 60px;" />
                    </label>
                    <label class="btnStyleb png_bg">
                        <asp:Button Text="查询" runat="server" ID="Button2" OnClick="btnSearch_Click" CssClass="png_bg"
                            Width="60px" />
                    </label>
                </div>
            </div>
            <%--列表--%>
            <div class="tableStyle">
                <asp:SGridView runat="server" ID="grdResult" Width="100%" AutoGenerateColumns="false"
                    AllowCascade="false" OnRowDataBound="sgvTypeList_RowDataBound" OnRowCommand="sgvTypeList_RowCommand"
                    DataKeyNames="PARAMETERTYPEID">
                    <Columns>
                        <asp:BoundField DataField="PARAMETERTYPEID" HeaderText="类别编号" HeaderStyle-Width="20%"
                            ItemStyle-Width="20%" />
                        <asp:BoundField DataField="PARAMETERTYPENAME" HeaderText="类别名称" HeaderStyle-Width="20%"
                            ItemStyle-Width="20%" />
                        <asp:BoundField DataField="DESCRIPTION" HeaderText="描述" HeaderStyle-Width="30%" ItemStyle-Width="20%" />
                        <asp:TemplateField>
                            <HeaderTemplate>
                                编辑</HeaderTemplate>
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                            <ItemTemplate>
                                <a href='../SysManage/ParameterTypeAddOrEdit.aspx?ParamAdd=1&ID=<%#Eval("PARAMETERTYPEID") %>'>
                                    <img alt="编辑" src="../../App_Themes/Common_CSS/images/GridEdit.gif" /></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                删除</HeaderTemplate>
                            <HeaderStyle Width="10%" />
                            <ItemStyle Width="10%" />
                            <ItemTemplate>
                                <asp:ImageButton ImageUrl="~/App_Themes/Common_CSS/images/delete_small.gif" runat="server"
                                    ID="ibtnDel" />
                                <asp:Button ID="btnDel" runat="server" CssClass="Hidden" CommandArgument='<%#Eval("PARAMETERTYPEID") %>'
                                    CommandName="del" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:SGridView>
                <div style="padding-top: 5px" align="right">
                    <cc1:PagingControl ID="pcData" runat="server" MaxNavigatePageCount="6" OnPageIndexClick="pcData_PageIndexClick" />
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
